//
//  YCAboutViewController.m
//  lianganyuchu
//
//  Created by iMac on 17/2/23.
//  Copyright © 2017年 杭州桑缇电子商务有限公司. All rights reserved.
//

#import "YCAboutViewController.h"

@interface YCAboutViewController ()

@end

@implementation YCAboutViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title=@"关于我们";
    self.navigationItem.leftBarButtonItem=[self tbarBackButton];
    
    [self addMainView];
}
-(void)addMainView
{
    [self.view setBackgroundColor:WHITE_COLOR];
    
    UIImageView *logoView=[[UIImageView alloc]init];
    [logoView setImage:[UIImage imageNamed:@"yuchu_logo"]];
    [self.view addSubview:logoView];
    [logoView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view).offset(100+kNAV_HEIGHT);
        make.centerX.mas_equalTo(self.view.centerX);
        make.width.mas_equalTo(100);
        make.height.mas_equalTo(100);
    }];

    
    UILabel *label=[[UILabel alloc]init];
    [label setTextColor:TEXT_LIGHT];
    [label setTextAlignment:NSTextAlignmentCenter];
    [label setText:[NSString stringWithFormat:@"两岸御厨商户端%@",Current_Version]];
    [label setFont:[UIFont LightFontOfSize:18]];
    [self.view addSubview:label];
    [label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(self.view.centerX);
        make.top.equalTo(logoView.bottom).offset(30);
        make.width.mas_equalTo(200);
        make.height.mas_equalTo(18);
    }];
    
    
    UILabel *label2=[[UILabel alloc]init];
    [label2 setTextColor:TEXT_DEEP];
    [label2 setTextAlignment:NSTextAlignmentCenter];
    [label2 setText:@"吃几顿提供技术支持"];
    [label2 setFont:[UIFont LightFontOfSize:15]];
    [self.view addSubview:label2];
    [label2 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(self.view.centerX);
        make.bottom.equalTo(self.view.bottom).offset(-40);
        make.width.mas_equalTo(200);
        make.height.mas_equalTo(15);
    }];

    
}

@end
